package com.zitronella.course.osseventmanager.service;

import com.zitronella.course.osseventmanager.domain.Event;
import com.zitronella.course.osseventmanager.domain.Position;

import java.util.List;
import java.util.Date;

import org.springframework.transaction.annotation.Transactional;

/**
 * Created by IntelliJ IDEA.
 * User: Robin
 * Date: Feb 9, 2009
 * Time: 12:56:29 AM
 * To change this template use File | Settings | File Templates.
 */
public interface EventService {

    @Transactional
    public void createEvent(Event e);
    @Transactional
    public boolean removeEvent(Event e);
    @Transactional
    public void updateEvent(Event e);
    @Transactional
    public Event findEvent(Long id );
    @Transactional
    public List<Event> findFutureEvents(Date startDate);
    @Transactional
    public List<Event> findEventByAdministratorEmail(String emailID);
    @Transactional
     public Event findEventByName(String name);
    /* public List<Position> findAllPositionsForEvent(Event event);
    public List<Position> findOpenPositionsForEvent(Event e);

   */ 
}
